<%@ Page Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="TestDoctorSubscription.aspx.cs" Inherits="Doctor_subscription" Title="Featured Doctor" %>
<%@ MasterType VirtualPath="~/MainMaster.master" %>
<%@ Register Src="../includes/DoctorMenu.ascx" TagName="DoctorMenu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" Runat="Server">
<% if( fIE5 ){ %>
		<script>
		
		var reqState=0;
		function showReqXML(){
		  if(reqState == 0){
		  document.all.xmlReqData.style.display = "";
		  document.all.xmlReq.innerText="Hide Request XML";
		  reqState = 1;
		  }else{
		  document.all.xmlReqData.style.display = 'none';
		  document.all.xmlReq.innerText="Show Request XML";
		  reqState = 0;
		  }
		}
		var resState=0;
		function showResXML(){
		 if(resState == 0){
		  document.all.xmlResData.style.display = "";
		  document.all.xmlRes.innerText="Hide Response XML";
		  resState = 1;
		  } else {
		  document.all.xmlResData.style.display = 'none';
		  document.all.xmlRes.innerText="Show Response XML";
		  resState = 0;
		  }
		}	


		</script>
<%}%>				
<script>
if(Page_ClientValidate())
		{
            function CheckCardNo(e)
            {
                if(!(e.keyCode>=48 && e.keyCode<=57))
                { 
                return false;
                document.getElementById("<%=txtcardnumber.ClientID%>").focus();
                }   
            }	
		}
</script>

<table align="center" bgcolor="#f1f1f1" width="200"  border="0" cellpadding="0" cellspacing="0" >
	<tr>
		<td class="bodytxt" style="width: 9px; height: 8px"><img alt="" height="8" src="<%=Session["strHttp"]%>images/grey-curver-inside-left.gif" width="9" /></td>
		<td class="bodytxt" style="border-top: #e0e0e0 1px solid; width: 531px; height: 8px"><img alt="" height="1" src="<%=Session["strHttp"]%>images/spacer.gif" width="8" /></td>
		<td class="bodytxt" style="width: 9px; height: 8px"><img alt="" height="8" src="<%=Session["strHttp"]%>images/grey-curver-inside-right.gif" width="9" /></td>
	</tr>
	<tr><td class="bodytxt" style="border-left: #e0e0e0 1px solid"><img alt="" height="1" src="<%=Session["strHttp"]%>images/spacer.gif" width="8" /></td>
		<td class="bodytxt" align="center">

			
<table   border="0" align="center" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
            <uc1:DoctorMenu ID="DoctorMenu1" runat="server" />
        </td>
    </tr>
    <tr>            
            <td class="bodytxt" align="left">            
                <asp:Label ID="lbl_drbid" runat="server" CssClass="page-heading" Text="Become a Featured Doctor" Font-Underline="false" Font-Size="20px"></asp:Label>
            </td>
     </tr>
     <tr>            
            <td style="height:20px">            
                
            </td>
     </tr>
     
     <tr>
        <td align="left">
            <asp:Wizard ID="WizardSubscription"  DisplaySideBar="false"  runat="server"  ActiveStepIndex="0" OnFinishButtonClick="WizardSubscription_FinishButtonClick">
                <WizardSteps>
                    <asp:WizardStep ID="WizardStep1"  runat="server" Title="First Subscription Page" StepType="Start">
                        <table cellpadding="0"  cellspacing="0" border="0" width="0">
                          <asp:Label ID="lblWelcome" runat="server" Text="Now You are on test Page" ></asp:Label>
                        </table>
                    </asp:WizardStep>
                    <asp:WizardStep ID="WizardStep2"  runat="server" Title="Second Subscription Page">
                    	<table id="TABLE1" cellspacing="0" cellpadding="0"  border="0" width="100%">
						<tr>
							<td>&nbsp;</td>
							<td>&nbsp;</td>
							<td>&nbsp;</td>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td><!--Total:--></td>
							<td></td>
							<td><asp:TextBox ID="txttotal" runat="server" Visible="false"></asp:TextBox></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>Card Number:</td>
							<td></td>
							<td><asp:TextBox ID="txtcardnumber" runat="server" MaxLength="16"></asp:TextBox>
	                            <asp:RequiredFieldValidator ID="rqdvalidator2" runat="server" Display="dynamic" ControlToValidate="txtcardnumber" ErrorMessage="Enter Card Number"></asp:RequiredFieldValidator>						
                                
							</td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>Exp. Month:</td>
							<td></td>
							<td>
								<select id="expmonth" name="expmonth" size="1">
									<%WriteMonthOpts();%>
								</select></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>Exp. Year:</td>
							<td></td>
							<td>
								<select id="expyear" name="expyear" size="1">
									<%WriteYearOpts();%>
								</select></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>Name<FONT color="red">*</FONT>:</td>
							<td></td>
							<td><asp:TextBox ID="txtName" runat="server" ReadOnly="True"></asp:TextBox></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>Address<FONT color="red">*</FONT>:</td>
							<td></td>
							<td><asp:TextBox ID="txtbaddrnum" runat="server" ReadOnly="True"></asp:TextBox></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>Zip<FONT color="red">*</FONT>:</td>
							<td></td>
							<td><asp:TextBox ID="txtbzip" runat="server" ReadOnly="True"></asp:TextBox></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>Email<FONT color="red">*</FONT>:</td>
							<td></td>
							<td><asp:TextBox ID="txtEmail" runat="server" ReadOnly="True"></asp:TextBox></td>
						</tr>
					
					
						<tr>
							<td>&nbsp;</td>
							<td>Amount :</td>
							<td></td>
							<td><asp:TextBox ID="txtinstallments" runat="server" ReadOnly="True"></asp:TextBox></td>
						</tr>
							
						<tr>
							<td>&nbsp;</td>
							<td><!--Start Date:--></td>
							<td></td>
							<td><asp:TextBox ID="txtstartdate" Visible="false" runat="server"></asp:TextBox></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td><!--Periodicity:--></td>
							<td></td>
							<td><asp:TextBox ID="txtperiodicity" Visible="false" runat="server"></asp:TextBox></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td><!--Threshold:--></td>
							<td></td>
							<td><asp:TextBox ID="txtpbthreshold" Visible="false" runat="server"></asp:TextBox></td>
						</tr>
					
						<tr>
						    <td align="center" colspan="4"><asp:Button ID="Submit" Visible="false" runat="server" OnClick="Submit_Click" Text="Submit"/></td>
						</tr>
					</table>
                    </asp:WizardStep>
                    <asp:WizardStep ID="WizardStep3" runat="server" StepType="Finish" Title="Third Subscription page">
                    <table border="1" cellpadding="0" cellspacing="0">
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp;SSL API Version:</td>
						<td width="808">&nbsp;&nbsp;<%=LPTxn.getVersion()%></td>
					</tr>
					<% if (R_Time.Length > 0) { %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Time:</td>
						<td width="808">&nbsp;&nbsp;<%=R_Time%></td>
					</tr>
					<% } if (R_Ref.Length > 0) { %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Reference:</td>
						<td width="808">&nbsp;&nbsp;<%=R_Ref%></td>
					</tr>
					<% } if (R_Approved.Length > 0) { %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Approval:</td>
						<td width="808">&nbsp;&nbsp;<%=R_Approved%></td>
					</tr>
					<% } if (R_Code.Length > 0) { %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Approval code:</td>
						<td width="808">&nbsp;&nbsp;<%=R_Code%></td>
					</tr>
					<% } %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Error:</td>
						<td width="808">&nbsp;&nbsp;<%=R_Error%></td>
					</tr>
					<%  if (R_OrderNum.Length > 0) { %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Order number:</td>
						<td width="808">&nbsp;&nbsp;<%=R_OrderNum%></td>
					</tr>
					<% } if (R_Message.Length > 0) { %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Message:</td>
						<td width="808">&nbsp;&nbsp;<%=R_Message%></td>
					</tr>
					<% } if (R_AVS.Length > 0) { %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; AVS:</td>
						<td width="808">&nbsp;&nbsp;<%=R_AVS%></td>
					</tr>
					<% } if (R_Score.Length > 0) { %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Score:</td>
						<td width="808">&nbsp;&nbsp;<%=R_Score%></td>
					</tr>
					<% } if (R_Tax.Length > 0) { %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Tax:</td>
						<td width="808">&nbsp;&nbsp;<%=R_Tax%></td>
					</tr>
					<% } if (R_Shipping.Length > 0) { %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Shipping:</td>
						<td width="808">&nbsp;&nbsp;<%=R_Shipping%></td>
					</tr>
					<% } if (R_FraudCode.Length > 0) { %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Fraud Code:</td>
						<td width="808">&nbsp;&nbsp;<%=R_FraudCode%></td>
					</tr>
					<% } if (R_ESD.Length > 0) { %>
					<tr>
						<td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; ESD:</td>
						<td width="808">&nbsp;&nbsp;<%=R_ESD%></td>
					</tr>
					<% } %>
				
				</table>
	<div>
				<% 
		if ( fIE5 ) {
		// do DHTML	
		%>
		<a id="xmlReq" href="javascript:showReqXML()">Show Request XML</a>
		<div id="xmlReqData" style="display:none">
			<% 
			
			Response.Write("<textarea cols=60 readonly rows=20>" + order + "</textarea>"); 
			%>
		</div>
		<br />
		<a id="xmlRes" href="javascript:showResXML()">Show Response XML</a>
		<div id="xmlResData" style="display:none">
			<%
			string  dbgXML;
			dbgXML = (resp.Replace("><",">\r\n<")).Replace(">\r\n</","></");
			Response.Write("<textarea  cols=70 readonly rows=14 wrap=off >" + dbgXML + "</textarea>") ;
		}
		%>
		</div>
		<% 
			/*
			if( dbg )
			{
			String dbgXML = ((order.Replace("<","&lt;")).Replace(">","&gt;")).Replace("\n","<BR>");
			Response.Write("SUBMITTED XML:" + dbgXML);
			dbgXML = ((resp.Replace("<","&lt;")).Replace(">","&gt;")).Replace("\n","<BR>");
			Response.Write("<br>SERVER RESPONSE XML:" + dbgXML);
			}
			*/
		%>
		</div>			
                    </asp:WizardStep>
                </WizardSteps>
            </asp:Wizard>
        </td>
    </tr>
            
</table>
	                        
		</td>
		<td class="bodytxt" style="border-right: #e0e0e0 1px solid"><img alt="" height="1" src="<%=Session["strHttp"]%>images/spacer.gif" width="8" /></td>
	</tr>
	<tr>
		<td class="bodytxt"><img alt="" height="9" src="<%=Session["strHttp"]%>images/grey-curver-inside-left-bot.gif" width="9" /></td>
		<td class="bodytxt" style="border-bottom: #e0e0e0 1px solid"><img alt="" height="1" src="<%=Session["strHttp"]%>images/spacer.gif" width="8" /></td>
		<td class="bodytxt"><img alt="" height="9" src="<%=Session["strHttp"]%>images/grey-curver-inside-right-bo.gif" width="9" /></td>
	</tr>
</table>

<table align="center" border="0" cellpadding="0" cellspacing="0">
  
   
            
</table>
</asp:Content>
